import Vue from 'vue';
import Vuetify from 'vuetify/lib';
import i18n from '@/locales'

Vuetify.config.silent = true

Vue.use(Vuetify);

export default new Vuetify({
  theme: {
    options: {
      customProperties: true,
    },
    themes: {
      light: {
        primary: '#4caf50',
        secondary: '#4caf50',
        tertiary: '#495057',
        accent: '#82B1FF',
        error: '#f55a4e',
        info: '#00d3ee',
        success: '#5cb860',
        warning: '#ffa21a'
      },
    },
  },
  icons: {
    iconfont: 'mdi', // default - only for display purposes
  },
  // lang: {
  //   locales: { zhHans, en, th },
  //   current: 'zh-Hans',
  // },
  lang: {
    t: (key, ...params) => i18n.t(key, params),
    current: 'zh'
  }
});
